package com.liqw.consumer.controller;

import com.liqw.consumer.service.ConsumerService;
import com.liqw.provider.api.ProviderApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController{

    @Autowired
    ConsumerService service;

    @Autowired
    ProviderApi providerApi;

    @GetMapping("/sayConsumer")
    public String sayConsumer() {
        return service.sayConsumer();
    }

    @GetMapping("/sayProvider")
    public String sayProvider(){
        return providerApi.sayProvider();
    }
}
